package com.tjut.oop.hol6;

public class Student {
	// 属性：姓名
	private String stuNam;
	// 属性：学号
	private int stuNum;
	// 属性：性别
	private String stuGen;
	// 属性：年龄
	private int stuAge;
	// 属性：期中考试成绩
	private double midTerm;
	// 属性：期末考试成绩
	private double finalTerm;
	// 属性：总成绩
	private double stuGrade;

	/**
	 * 学生信息展示
	 */
	public void showAll() {
		System.out.println("学生姓名为：" + stuNam);
		System.out.println("学生学号为：" + stuNum);
		System.out.println("学生性别为：" + stuGen);
	}

	public int getStuAge() {
		return stuAge;
	}

	public void setStuAge(int stuAge) {
		this.stuAge = stuAge;
	}

	public double getMidTerm() {
		return midTerm;
	}

	public void setMidTerm(double midTerm) {
		this.midTerm = midTerm;
	}

	public double getFinalTerm() {
		return finalTerm;
	}

	public void setFinalTerm(double finalTerm) {
		this.finalTerm = finalTerm;
	}

	public Student() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Student(int stuAge, String stuNam, int stuNum, String stuGen, double midTerm, double finalTerm) {
		super();
		this.stuAge = stuAge;
		this.stuNam = stuNam;
		this.stuNum = stuNum;
		this.stuGen = stuGen;
		this.midTerm = midTerm;
		this.finalTerm = finalTerm;
	}

	public String getStuNam() {
		return stuNam;
	}

	public void setStuNam(String stuNam) {
		this.stuNam = stuNam;
	}

	public int getStuNum() {
		return stuNum;
	}

	public void setStuNum(int stuNum) {
		this.stuNum = stuNum;
	}

	public String getStuGen() {
		return stuGen;
	}

	public void setStuGen(String stuGen) {
		this.stuGen = stuGen;
	}

	public double getStuGrade() {
		return stuGrade;
	}

	public void setStuGrade(double stuGrade) {
		this.stuGrade = stuGrade;
	}
}
